package com.base.common.persistent.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.base.common.persistent.model.SignPoint;
import com.cjy.common.annotation.MyBatisRepository;

@MyBatisRepository
public interface SignPointMapper {

	/**
	 * 根据小区id查询签到点信息
	 * 
	 * @param compoundsId
	 * @return
	 */
	public List<SignPoint> querySignPointsByCompoundsId(@Param(value = "compoundsId") int compoundsId);

	/**
	 * 根据uuid或者签到点编号查询签到点信息
	 * 
	 * @param uuid
	 * @param code
	 * @param flag
	 * @return
	 */
	public List<SignPoint> getSignPointByUuidOrCode(@Param(value = "uuid") String uuid,
			@Param(value = "code") String code, @Param(value = "flag") int flag);

	/**
	 * 根据签到点类别和小区ID查询签到点ID
	 * 
	 * @param categories
	 * @param compoundsId
	 * @return
	 */
	public int querySignPointIdByCategoriesAndCompoundsId(@Param(value = "categories") int categories,
			@Param(value = "compoundsId") int compoundsId);

}
